/* eslint-disable */
// 该文件由 OneAPI 自动生成，请勿手动修改！
import { request } from '@umijs/max';

const SEND_LOGIN_SMS_CODE = '/yoocaApi/auth/sendLoginSmsCode'
const LOGIN_BY_SMS_CODE = '/yoocaApi/auth/loginBySmsCode'

export async function sendLoginSmsCode(
  body?: AuthAPI.SendLoginSmsCode,
) {
  return request<CommonAPI.Result<null>>(SEND_LOGIN_SMS_CODE, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    params: body,
  });
}

export async function loginBySmsCode(
  body?: AuthAPI.LoginBySmsCode,
) {
  return request<CommonAPI.Result<null>>(LOGIN_BY_SMS_CODE, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    params: body,
  });
}
